package com.mt.demo.domain;

import com.mt.demo.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 投票选项对象 mt_vote_option
 * 
 * @author gary
 * @date 2025-08-11
 */
public class MtVoteOption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 选项ID */
    private Long optionId;

    /** 问题ID */
    @Excel(name = "问题ID")
    private Long questionId;

    /** 选项文本 */
    @Excel(name = "选项文本")
    private String optionText;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }

    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }

    public void setOptionText(String optionText) 
    {
        this.optionText = optionText;
    }

    public String getOptionText() 
    {
        return optionText;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("optionId", getOptionId())
            .append("questionId", getQuestionId())
            .append("optionText", getOptionText())
            .append("sort", getSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
